package hl.crazy_java.chapter_17;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;

/**
 * 
 * @author Liu Huan
 */


public class Client {
    public static void main(String[] args) throws IOException {
        var socket = new Socket("127.0.0.1", 30000);
        var br = new BufferedReader(new InputStreamReader(socket.getInputStream()));

        String line = br.readLine();
        System.out.println("data : " + line);

        br.close();
        socket.close();
    }
}
